﻿<Page x:Class="University.Workshop.Presentation.IncomeMoney.SearchIncome"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      Height="563" Width="780"
	Title="SearchIncome" Loaded="Page_Loaded">

    <Grid Height="563" Width="780">
        <Path Data="F1M89,500C86.791,500,85,501.791,85,504L85,504L85,538C85,540.209,86.791,542,89,542L89,542L1081,542C1083.209,542,1085,540.209,1085,538L1085,538L1085,504C1085,501.791,1083.209,500,1081,500L1081,500z" Height="50" Margin="20,0,12,477" Stretch="Fill" Stroke="#FFB6BDBA" VerticalAlignment="Bottom">
            <Path.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF0F9F6" Offset="0" />
                    <GradientStop Color="sc#1, 0.8645034, 0.9386971, 0.9131128" Offset="0.036626586095394487" />
                    <GradientStop Color="sc#1, 0.849580646, 0.919979036, 0.8946999" Offset="0.046193367402403762" />
                    <GradientStop Color="sc#1, 0.8297841, 0.8951477, 0.8702733" Offset="0.052599494473647423" />
                    <GradientStop Color="sc#1, 0.8061086, 0.86545074, 0.8410604" Offset="0.057584354782454161" />
                    <GradientStop Color="sc#1, 0.7912979, 0.8468732, 0.822785735" Offset="0.059999998658895493" />
                    <GradientStop Color="#FFE6EDEA" Offset="0.059999998658895493" />
                    <GradientStop Color="#FFE6EDEA" Offset="1" />
                </LinearGradientBrush>
            </Path.Fill>
        </Path>
        <TextBlock FontSize="21" FontWeight="Bold" Margin="28,44,0,482" TextWrapping="Wrap" HorizontalAlignment="Left" Width="217"><TextBlock.Effect><DropShadowEffect BlurRadius="1" Color="White" Direction="270" Opacity="0.7" ShadowDepth="1" /></TextBlock.Effect> <Run Language="es-es" Text="Buscar Ingreso" /></TextBlock>
        <Button Content="Buscar" FontWeight="Bold" Foreground="Black" Height="34" Margin="637,44,23,485" Name="SearchBtn" Click="SearchBtn_Click"/>
        
        <DataGrid AutoGenerateColumns="False" CanUserAddRows="False" HeadersVisibility="None" Height="281" HorizontalAlignment="Center" Margin="124,170,142,0" Name="collectControlFindeddDgv" VerticalAlignment="Top" Width="514">
            <DataGrid.Columns>
                <DataGridTemplateColumn Header="Fecha" Width="140">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding CollectPayDate}" ContentStringFormat="{}{0:MM/dd/yyyy}"  Height="32" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="tipo" Width="140">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{ Binding Estructura}" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="Gasto" Width="131">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding PaymentAmount}" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="Acciones" Width="84">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <DockPanel Width="78">
                                <Button Height="32" Name="ShowOtbDataBtn" ToolTip="Mostrar" Width="32" Click="ShowOtbDataBtn_Click" HorizontalAlignment="Right">
                                    <Button.Background>
                                        <ImageBrush ImageSource="/University.Workshop.Presentation;component/Resources/Icons/file_find.ico" Stretch="Fill" TileMode="FlipXY" Viewport="0,0,32,32" ViewportUnits="Absolute" />
                                    </Button.Background>
                                </Button>
                            </DockPanel>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
        <Rectangle Fill="#43000000" Height="25" HorizontalAlignment="Left" Margin="124,139,0,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="514" />
        <Label Content="Tipo" Height="28" HorizontalAlignment="Left" Margin="269,141,0,0" Name="label2" VerticalAlignment="Top" />
        <Label Content="Monto" HorizontalAlignment="Left" Margin="411,141,0,397" Name="label6" />
        <Label Content="Fecha" Height="28" HorizontalAlignment="Left" Margin="131,141,0,0" Name="label4" VerticalAlignment="Top" />
        <DatePicker Height="25" HorizontalAlignment="Left" Margin="247,108,0,0" Name="initialDateDpk" VerticalAlignment="Top" Width="115" />
        <DatePicker Height="25" HorizontalAlignment="Left" Margin="400,108,0,0" Name="endDateDpk" VerticalAlignment="Top" Width="115" />
        <Label Content="Desde" Height="28" HorizontalAlignment="Left" Margin="273,93,0,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="Hasta" Height="28" HorizontalAlignment="Left" Margin="431,93,0,0" Name="label7" VerticalAlignment="Top" />
        <Label Content="Total:" Height="28" HorizontalAlignment="Left" Margin="275,471,0,0" Name="label8" VerticalAlignment="Top" />
        <TextBox Height="30" HorizontalAlignment="Left" Margin="322,468,0,0" Name="totalMoneyTxt" VerticalAlignment="Top" Width="137" IsReadOnly="True" />
    </Grid>
</Page>
